/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.ykkj.plant.base.type.entity;

import com.fasterxml.jackson.annotation.JsonBackReference;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 植物类型管理Entity
 * @author Wrong
 * @version 2016-10-09
 */
public class PlantType extends DataEntity<PlantType> {
	
	private static final long serialVersionUID = 1L;
	private PlantType parent;		// 父编号
	private String number;		// 中文编号
	private String typeName;		// 中文名称
	private String latinName;		// 拉丁名
	private String description;		// 简介
	private String level;		// 级别
	private String orders;		// 排序
	private String img;		// 图片
	private String remark;		// remark
	private String delFalg;		// del_falg
	public PlantType() {
		super();
	}

	public PlantType(String id){
		super(id);
	}

	@JsonBackReference
	public PlantType getParent() {
		return parent;
	}

	public void setParent(PlantType parent) {
		this.parent = parent;
	}
	
			
	@Length(min=0, max=30, message="中文编号长度必须介于 0 和 30 之间")
	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}
	
			
	@Length(min=0, max=100, message="中文名称长度必须介于 0 和 100 之间")
	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
	
			
	@Length(min=0, max=100, message="拉丁名长度必须介于 0 和 100 之间")
	public String getLatinName() {
		return latinName;
	}

	public void setLatinName(String latinName) {
		this.latinName = latinName;
	}
	
			
	@Length(min=0, max=255, message="简介长度必须介于 0 和 255 之间")
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
			
	@Length(min=0, max=10, message="级别长度必须介于 0 和 10 之间")
	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}
	
			
	@Length(min=0, max=11, message="排序长度必须介于 0 和 11 之间")
	public String getOrders() {
		return orders;
	}

	public void setOrders(String orders) {
		this.orders = orders;
	}
	
			
	@Length(min=0, max=255, message="图片长度必须介于 0 和 255 之间")
	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}
	
			
	@Length(min=0, max=255, message="remark长度必须介于 0 和 255 之间")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
			
	@Length(min=0, max=1, message="del_falg长度必须介于 0 和 1 之间")
	public String getDelFalg() {
		return delFalg;
	}

	public void setDelFalg(String delFalg) {
		this.delFalg = delFalg;
	}
	
			
}